package com.moto.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author hyf
 * @since 2023-09-04
 */
@Getter
@Setter
@ApiModel(value = "Address对象", description = "")
public class Address implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("收货地址ID")
    @TableId(value = "address_id", type = IdType.AUTO)
    private Integer addressId;

    @ApiModelProperty("收货人姓名")
    private String name;

    @ApiModelProperty("电话")
    private String tel;

    @ApiModelProperty("省")
    private String province;

    @ApiModelProperty("市")
    private String city;

    @ApiModelProperty("区")
    private String county;

    @ApiModelProperty("详细地址")
    private String addressDetail;

    @ApiModelProperty("地区编码，通过 省市区选择 获取 (必填)")
    private Integer areaCode;

    @ApiModelProperty("是否为默认值")
    private Integer isDefault;

    @ApiModelProperty("用户id")
    private Integer uId;

    /**
     * 车辆删除状态
     */
    @ApiModelProperty("账号状态 正常:1，删除: 0")
    @TableLogic(value = "1", delval = "0")
    private Integer isDelete;
}
